#pragma once

#include <QMainWindow>
#include "ui_MainWindow.h"

#include "GLWidget.h"
#include "SideWindow.h"
#include "GenerateNewSurface.h"

class MainWindow: public QMainWindow, public Ui::MainWindow
{
    Q_OBJECT

private:
    GLWidget    *_glwidget;
    SideWindow  *_side_window;

public:
    MainWindow(QWidget *parent = 0);

    void keyPressEvent(QKeyEvent* e);

private slots:
    void on_actionE_xit_triggered();
    void GenNewSurf_triggered();

    void ControlPointManipulation_enable(bool enable);
    void ControlPointIndex_changed(int index);
    void ControlPointManipuilation_accepted();
    void ControlPointManipuilation_rejected();
};
